import request from '@/utils/request'

// 查询产品SKU列表
export function listProductSku(query) {
  return request({
    url: '/pms/productSku/list',
    method: 'get',
    params: query
  })
}

// 查询产品SKU详细
export function getProductSku(id) {
  return request({
    url: '/pms/productSku/' + id,
    method: 'get'
  })
}

// 新增产品SKU
export function addProductSku(data) {
  return request({
    url: '/pms/productSku',
    method: 'post',
    data: data
  })
}

// 修改产品SKU
export function updateProductSku(data) {
  return request({
    url: '/pms/productSku',
    method: 'put',
    data: data
  })
}

// 删除产品SKU
export function delProductSku(id) {
  return request({
    url: '/pms/productSku/' + id,
    method: 'delete'
  })
}

// 导出产品SKU
export function exportProductSku(query) {
  return request({
    url: '/pms/productSku/export',
    method: 'get',
    params: query
  })
}